Skip to content

AB-705 mandatory code_verifier for public client#17

Open
purbopanambang wants to merge 1 commit intoAccelByte:masterfrom
purbopanambang:AB-705-mandatory-code-verifier-on-public-client
Open

AB-705 mandatory code_verifier for public client#17
purbopanambang wants to merge 1 commit intoAccelByte:masterfrom
purbopanambang:AB-705-mandatory-code-verifier-on-public-client

Conversation

@purbopanambang
Copy link
Copy Markdown

AB-705 mandatory code-verifier and remove checking auth header on public client

AB-705 mandatory ccode-verifier and remove checking auth header on public client
Comment thread access.go
}

func (s *Server) handleAuthorizationCodeRequest(w *Response, r *http.Request) *AccessRequest {
auth, err := CheckBasicAuth(r)
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread access.go
var codeVerifier string
// Optional PKCE support (https://tools.ietf.org/html/rfc7636)
if codeVerifier = r.Form.Get("code_verifier"); len(codeVerifier) == 0 {
if s.Config.RequirePKCEForPublicClients && publicClient {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, is RequirePKCEForPublicClients configurable? What if it's set to false?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will not check the PKCE challenge / verifier if it's not enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants